import {$get,$post} from '../utils/request.js'

// 获取房间列表
export const $list = async (params) => {
  let ret = await $post('/room/select',{ 
  "page": 1,
  "size": 10000
})
  return ret
}

// 添加房间
export const $add = async (params)=>{
  let ret = await $post('Room/Add',params)
  return ret
}

// 获取单个房间
export const $getOne = async (params)=>{
  let ret = await $get('Room/GetOne',params)
  return ret
}

// 修改房间
export const $update = async (params)=>{
  let ret = await $post('Room/Update',params)
  return ret
}

// 删除房间
export const $delete = async (params)=>{
  let ret = await $post('Room/Delete',params)
  return ret
}